import request from '@/utils/request'

// 查询回库单明细列表
export function listReturnStockBillDetail(query) {
  return request({
    url: '/inOutStock/returnStockBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询回库单明细详细
export function getReturnStockBillDetail(id) {
  return request({
    url: '/inOutStock/returnStockBillDetail/' + id,
    method: 'get'
  })
}

// 新增回库单明细
export function addReturnStockBillDetail(data) {
  return request({
    url: '/inOutStock/returnStockBillDetail',
    method: 'post',
    data: data
  })
}

// 修改回库单明细
export function updateReturnStockBillDetail(data) {
  return request({
    url: '/inOutStock/returnStockBillDetail',
    method: 'put',
    data: data
  })
}

// 删除回库单明细
export function delReturnStockBillDetail(id) {
  return request({
    url: '/inOutStock/returnStockBillDetail/' + id,
    method: 'delete'
  })
}
